﻿
 

using System;
using System.Data.Objects;
using System.Data.EntityClient;
using Sern.Common;
using Microsoft.Practices.Unity;

namespace Sern.ServiceImplementation.TrackerDefinition.Data
{
	public class ComponentRegistrar : IComponentRegistrar
	{
		public void Register(IUnityContainer container)
		{
					container.RegisterType<IRepository<Client>, EFRepository<TrackerEntityContainer, Client>>();
					container.RegisterType<IRepository<Job>, EFRepository<TrackerEntityContainer, Job>>();
					container.RegisterType<IRepository<KeyAtClientLog>, EFRepository<TrackerEntityContainer, KeyAtClientLog>>();
					container.RegisterType<IRepository<KeyTree>, EFRepository<TrackerEntityContainer, KeyTree>>();
					container.RegisterType<IRepository<sysdiagram>, EFRepository<TrackerEntityContainer, sysdiagram>>();
					container.RegisterType<IRepository<JobKeyword>, EFRepository<TrackerEntityContainer, JobKeyword>>();
				}
	}
}